sort keys to try to eliminate data dependence on Ruby version
authorSteven G. Johnson <stevenj@alum.mit.edu>
Thu, 25 Jun 2015 23:15:57 +0000 (19:15 -0400)
committerSteven G. Johnson <stevenj@alum.mit.edu>
Thu, 25 Jun 2015 23:15:57 +0000 (19:15 -0400)
data/data_generator.rb

index 3d8c3b7dece7ffa6a0f6425622e546e27aee5953..0fd25c040d0323105bc08d2eedfc14073d6171ff 100644 (file)
@@ -313,8 +313,8 @@ $stdout << "};\n\n"
 
 $stdout << "const utf8proc_int32_t utf8proc_combinations[] = {\n  "
 i = 0
-comb1st_indicies.keys.each_index do |a|
-  comb2nd_indicies.keys.each_index do |b|
+comb1st_indicies.keys.sort.each_index do |a|
+  comb2nd_indicies.keys.sort.each_index do |b|
     i += 1
     if i == 8
       i = 0